package com.nondo.dean.order.model.param;

import java.math.BigDecimal;

import com.nondo.dean.common.tool.DateUtils;

/**
 * @author xiaofan
 * @Description:
 * @throws
 * @date 2018-04-2010:22
 * @Version
 */
public class OrderSubjectSearchParam {
    /**
     * 采购订单编码
     */
    private String orderCode;
    /**
     * 客户编号
     */
    private String userNo;
    /**
     * 客户名称
     */
    private String userName;
    /**
     * 创建时间
     */
    private String[] createDate;
    /**
     * 事业部代码
     */
    private String businessCode;
    /**
     * sap订单号
     */
    private String sapCode;
    /**
     * 订单金额
     */
    private BigDecimal amount;
    /**
     * 定制金额
     */
    private BigDecimal specialAmount;
    /**
     * 接单员
     */
    private String orderTakeUser;
    /**
     * 订单状态
     */
    private Integer orderStatus;
    /**
     * 审批状态
     */
    private Integer auditStatus;
    /**
     * 创建人
     */
    private Long createBy;
    /**
     * 导购员
     */
    private String saleGuide;
    /**
     * 更新人
     */
    private Long updateBy;
    /**
     * 区域名称
     */
    private String regionName;
    /**
     * 开始日期
     */
    private String beginDate;
    /**
     * 结束日期
     */
    private String endDate;

    public String getBeginDate() {
        if (createDate != null && createDate.length>0 && createDate[0] != null)
            beginDate = DateUtils.parseUTCDate(createDate[0]);
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        if (createDate != null && createDate.length>1 && createDate[1] != null)
            endDate = DateUtils.parseUTCDate(createDate[1]);
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String[] getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String[] createDate) {
        this.createDate = createDate;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public String getSapCode() {
        return sapCode;
    }

    public void setSapCode(String sapCode) {
        this.sapCode = sapCode;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getSpecialAmount() {
        return specialAmount;
    }

    public void setSpecialAmount(BigDecimal specialAmount) {
        this.specialAmount = specialAmount;
    }

    public String getOrderTakeUser() {
        return orderTakeUser;
    }

    public void setOrderTakeUser(String orderTakeUser) {
        this.orderTakeUser = orderTakeUser;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public String getSaleGuide() {
        return saleGuide;
    }

    public void setSaleGuide(String saleGuide) {
        this.saleGuide = saleGuide;
    }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }
}
